<?php
/**
 * Created by SonHA
 * User: SonHA
 * Date: 02/05/13
 * Time: 2:29 PM
 */
/* @var $this SiteController */
?>
<!doctype html>
<html lang="en-US">
<?php $this->renderPartial('/site/_head_tag')?>
<body>
<div id="bodyWrapper" class="bg_body">
    <div id="mainWrapper">
        <div id="mainContent">
            <?php $this->renderPartial('/site/_header')?>
            <?php
            // Neu action la trang chu(index) thi render ra cai slider
            if(Yii::app()->controller->action->id == 'index') {?>
            <?php $this->renderPartial('/site/_slider')?>
            <?php } ?>
            <div class="row_4">
                <?php $this->renderPartial('/site/_breadcrumb')?>
                <div class="container_24">
                    <div id="bodyContent" class="grid_18 push_6 ">
                        <?php echo $content;?>
                        <script type="text/javascript">
                            $(document).ready(function () {
                                var row_list_new_products_name = $('.row_new_products_name');
                                row_list_new_products_name.each(function () {
                                    new equalHeights_new_products_name($('#' + $(this).attr("id")));
                                });
                                var row_list_new_products_block = $('.row_new_products_block');
                                row_list_new_products_block.each(function () {
                                    new equalHeights_new_products_block($('#' + $(this).attr("id")));
                                });
                            })
                        </script>
                        <script type="text/javascript">
                            $(document).ready(function () {
                                var row_list_sub_categories_name = $('.row_sub_categories');
                                row_list_sub_categories_name.each(function () {
                                    new equalHeights_sub_categories_name($('#sub_categories'));
                                });
                            })
                        </script>
                    </div>
                    <?php $this->renderPartial('/site/_sidebar')?>
                </div>
            </div>
            <?php $this->renderPartial('/site/_footer')?>
        </div>
    </div>
</div>
</body>
</html>